package com.secondhand.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.secondhand.domain.user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface userMapper extends BaseMapper<user> {

    user findByUserNameAndPassword(@Param("username") String username, @Param("password") String password);

    user getUserByUserName(@Param("username") String username);

    int deleteUser(@Param("username")String username);

    Boolean insertUser(@Param("username") String username, @Param("password") String password);

    int getUserIdByUserName(String username);

    Boolean updateUser(user user);
}
